package day014.set;

import java.util.HashSet;

public class HashSetDemo2 {
    public static void main(String[] args) {
        HashSet<Student> studentSet = new HashSet<>();

        studentSet.add(new Student("熊大", 23));
        studentSet.add(new Student("光头强", 24));
        studentSet.add(new Student("熊二", 22));
        studentSet.add(new Student("熊大", 23));

        for (Student s : studentSet) {
            System.out.println(s);
        }
    }
}
